<% @page_title = "多背一公斤 | 分享" %>

<% content_for(:sidebar) do %>

<% end %>

<h1>上传照片</h1>
<% form_for :photos, :url => photos_url, :html => {:multipart => true} do |f| %>
  <p><label for="upload_a_photo">上传照片：</label><span class="tip">照片大小不超过 2M</span></p>
  <p><label for="photo1">照片1：</label><%= f.file_field :no_1 %></p>
  <p><label for="photo2">照片2：</label><%= f.file_field :no_2 %></p>
  <%= f.hidden_field :school_id %>
  <%= f.hidden_field :event_id %>
  <%= submit_tag "上 传" %>
<% end %>